package com.hxzy.system.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel(value = "更改值的模板")
@Getter
@Setter
public class ValueChangeDTO {

    @ApiModelProperty(value = "主键",required = false)
    @NotNull(message = "主键的值不能为空")
    private Long id;

    @ApiModelProperty(value = "值",required = true)
    @NotBlank(message = "值不能为空")
    private String value;
}
